<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label for="c-url" class="control-label col-xs-12 col-sm-2">{:__('模版类型')}:</label>
        <div class="col-xs-12 col-sm-8">
			<select id="flag" class="form-control "  name="row[type]" style="height:31px;">
				<option value="2"  >图片模版</option>
				<option value="3"  >图片+文字模版</option>
				<option value="1"  >原图</option>

				<!-- <option value="4"  >文字模版</option> -->
			</select>
		</div>
    </div>


    <div id="wenzi" style="display: none;">
        <div class="form-group">
            <label for="username" class="control-label col-xs-12 col-sm-2">字体大小:</label>
            <div class="col-xs-12 col-sm-8">
                <input   class="form-control form-control"  name="row[size]" type="text" value="70">
            </div>
        </div>
        <div class="form-group">
            <label for="username" class="control-label col-xs-12 col-sm-2">坐标 距离左边多少(PX):</label>
            <div class="col-xs-12 col-sm-8">
                <input   class="form-control form-control"  name="row[location_z]" type="text" value="">
            </div>
        </div>
        <div class="form-group">
            <label for="username" class="control-label col-xs-12 col-sm-2">坐标 距离上边多少(PX):</label>
            <div class="col-xs-12 col-sm-8">
                <input   class="form-control form-control"  name="row[location_y]" type="text" value="">
            </div>
        </div>
        <div class="form-group">
            <label for="username" class="control-label col-xs-12 col-sm-2">每行显示字数限制:</label>
            <div class="col-xs-12 col-sm-8">
                <input   class="form-control form-control"  name="row[pre_line]" type="text" value="">
            </div>
        </div>
        <div class="form-group">
            <label for="username" class="control-label col-xs-12 col-sm-2">最多可以显示多少行文字:</label>
            <div class="col-xs-12 col-sm-8">
                <input   class="form-control form-control"  name="row[line]" type="text" value="">
            </div>
        </div>
        <div class="form-group">
            <label for="username" class="control-label col-xs-12 col-sm-2">每行文字间距:</label>
            <div class="col-xs-12 col-sm-8">
                <input   class="form-control form-control"  name="row[interval]" type="text" value="100">
            </div>
        </div>
    </div>

    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">上传图片:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-avatars" data-rule="required" class="form-control" size="50" name="row[img]" type="text" value=""  style="display: none;">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatars" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/webp,image"  data-multiple="true"  data-preview-id="p-avatars"><i class="fa fa-upload"></i> 上传</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-avatars"></span>
                </div>
                <ul class="row list-inline plupload-preview" id="p-avatars" style="width: 100%;"></ul>
        </div>
    </div>

    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
